# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-zope-deferredimport
_pkgname=zope.deferredimport
pkgver=4.3.1
pkgrel=2
pkgdesc="Defer imports until used by code"
options="!check" # Requires py3-zope-testrunner, is in testing
url="https://github.com/zopefoundation/$_pkgname"
arch="noarch"
license="ZPL-2.1"
depends="py3-setuptools py3-zope-proxy"
checkdepends="py3-zope-testrunner"
source="$_pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-zope-deferredimport" # Backwards compatibility
provides="py-zope-deferredimport=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}


sha512sums="1c367def232ec79ad10a9d8f1e068598d2fdb49b067c2c3f44c9ad25c198afbbf2d52659c3795aad76f8c82d212e49086b81ab1c1dcc6aac2e3ce66c35ff5750  zope.deferredimport-4.3.1.tar.gz"
